<!DOCTYPE html>
<html>
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]> 
      <script src="js/html5shiv.js"></script>
    <![endif]-->
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $title_for_layout; ?>
	</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	<?php
		echo $this->Html->meta('images/favicon.ico');
		echo $this->Html->css('bootstrap');
		echo $this->Html->css('flat-ui');
		echo $this->Html->css('style-lineicons');
		echo $this->Html->css('twh');
		echo $this->Html->css('animate.min');
		echo $this->Html->css('avgrund');
		echo $this->Html->css('gallery');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
	
	<script src="js/jquery-1.8.2.min.js"></script>

</head>
<body>
	<aside id="default-popup" class="avgrund-popup" style="height:450px">
		<img src="images/illustrations/mail.png" style="width: 19%;position: absolute;top: -45px;left: 143px;">
			<h2 align="center">Mandaci una mail!</h2>
			<p>
			<div class="span4">
	          <input type="text" value="" placeholder="il tuo nome" class="span4">
	          <input type="text" value="" placeholder="la tua email" class="span4">
	          <textarea placeholder="il tuo messaggio" class="span4" rows="10"></textarea>
	        </div>
			</p>
			<button class="btn btn-block btn-primary" onclick="javascript:send();">Invia</button>
			<button class="btn btn-block" onclick="javascript:Avgrund.hide( '#default-popup');">Chiudi</button>
	</aside>

	<aside id="map-popup" class="avgrund-popup" style="left:32%;height:350px;width:800px">
<img src="images/illustrations/map.png" style="width: 12%;position: absolute;top: -70px;left: 370px;">
			<div style="width:100%;height:100%">
	          <iframe width='100%' height='100%' frameBorder='0' src='http://a.tiles.mapbox.com/v3/byteo.map-smvgso3u.html#12/43.1694/13.824099999999982'></iframe>
	        </div>
			
	</aside>


	<div id="container" class="avgrund-contents">
		<?php echo $this->element("head-line",array(
    		"type" => "1"))?>
		
        <div class="content" style="min-height:600px;	">
			<?php echo $this->Session->flash(); ?>
			<?php echo $this->fetch('content'); ?>

		</div><!-- /content -->

		
	</div>
	<div class="avgrund-cover"></div>
	<footer>
		<div class="span4 pull-right twhfooter">
			<div class="navbar">
			  <div class="navbar-inner pull-right" style="background: none;">
			    <ul class="nav">
			    	<li>
			      	<a href="#" data-original-title="like on facebook" data-trigger="hover" ><span class="icon-menu" aria-hidden="true" data-icon="&#xe01a;"></span></a>
			      </li>
			      <li >
			      	<a href="#" id="bookmarkme" data-original-title="Aggiungi ai preferiti" ><span class="icon-menu" aria-hidden="true" data-icon="&#xe002;"></span></a>
			      </li>
			      
			      
			    </ul>
			  </div>
			</div>

		</div>

		<?php echo $this->element('sql_dump'); ?>
	
	</footer>

	<!-- Load JS here for greater good =============================-->
    <script src="js/modernizr.custom.js"></script>

    <script src="js/jquery-ui-1.10.0.custom.min.js"></script>
    <script src="js/jquery.dropkick-1.0.0.js"></script>
    <script src="js/custom_checkbox_and_radio.js"></script>
    <script src="js/custom_radio.js"></script>
    <script src="js/jquery.tagsinput.js"></script>
    <script src="js/bootstrap-tooltip.js"></script>
    <script src="js/jquery.placeholder.js"></script>
    <script src="http://vjs.zencdn.net/c/video.js"></script>
    <script src="js/application.js"></script>
    <script src="js/avgrund.js"></script>
    <script src="js/jquery.gallery.js"></script>
    <!--[if lt IE 8]>
      <script src="js/icon-font-ie7.js"></script>
      <script src="js/icon-font-ie7-24.js"></script>
    <![endif]-->
    <script type="text/javascript">
	  $(function(){
	  	  $('.nav a').tooltip();
	  });
  	


		$('#bookmarkme').click(function() {
		            if (window.sidebar && window.sidebar.addPanel) { // Mozilla Firefox Bookmark
		                window.sidebar.addPanel(document.title,window.location.href,'');
		            } else if(window.external && window.external.AddFavorite) { // IE Favorite
		                window.external.AddFavorite(location.href,document.title); 
		            } else if(window.opera && window.print) { // Opera Hotlist
		                this.title=document.title;
		                return true;
		            } else { // webkit - safari/chrome
		                alert('Premi ' + (navigator.userAgent.toLowerCase().indexOf('mac') != - 1 ? 'Command/Cmd' : 'CTRL') + ' + D per salvare tra i preferiti.');
		            }
		        });


	</script>
</body>
</html>
